package cn.itcast.j2se.pojo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ：sean
 * @date ：Created in 2021/12/19
 * @description ：
 * @version: 1.0
 */
public class OrderItem {
	private String orderId;
	private String productId;
	private Address addr;
	private Date OrderDate;
	private int qty;
	private BigDecimal totalCount;

	public Address getAddr() {
		return addr;
	}

	public void setAddr(Address addr) {
		this.addr = addr;
	}

	public OrderItem(){
	}

	public OrderItem(String orderId, String productId) {
		this.orderId = orderId;
		this.productId = productId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	@Override
	public String toString() {
		return "OrderItem{" +
			"orderId='" + orderId + '\'' +
			", productId='" + productId + '\'' +
			", addr=" + addr +
			", OrderDate=" + OrderDate +
			'}';
	}
}
